﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="QueryTrainingList.ascx.vb" Inherits="WebForm_ManageTrainingRegister_QueryTrainingList" %>
<%@ Register Src="~/WebForm/CommonControl/CalendarTextBox.ascx" TagName="CalendarTextBox"
    TagPrefix="My" %>
<%@ Register Src="~/WebForm/CommonControl/UploadFileControl.ascx" TagName="UploadFileControl"
    TagPrefix="uc2" %>
     <asp:UpdatePanel ID="upTownID" runat="server" UpdateMode="conditional">
                                    <ContentTemplate>
<table width="95%" cellpadding="0" cellspacing="0">
    <tr>
        <td align="left">
            <asp:Label ID="lblDate" runat="server" meta:resourcekey="lblDate"></asp:Label>
            <My:CalendarTextBox ID="txtStartDate" runat="server" />~<My:CalendarTextBox ID="txtEndDate" runat="server" />
        </td>
    </tr>
    <tr>
        <td align="left">
            <asp:Label ID="lblOrg" runat="server" meta:resourcekey="lblOrg"></asp:Label>
            <asp:DropDownList ID="ddlOrg" runat="server"></asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:GridView ID="gv" runat="server" SkinID="pager" meta:resourcekey="gv" AllowPaging="true" DataKeyNames="Id,OrganizationName">
                <Columns>
                    <asp:BoundField DataField="OrganizationName" HeaderText="<%$ Resources:OrganizationName %>" />
                    <asp:BoundField DataField="StartDate" HeaderText="<%$ Resources:StartDate %>" />
                    <asp:BoundField DataField="GroupName" HeaderText="<%$ Resources:GroupName %>" />
                    <asp:TemplateField HeaderText="<%$ Resources: CheckList %>">
                        <ItemTemplate>
                        <%--   <asp:HyperLink ID="hlinkCheck" runat="server" ForeColor="Blue" NavigateUrl='<%# String.Format("{0}{1}.{2}", Eval("FileSavePath"), Eval("FileSaveName"),Eval("FileType")) %>' Target="_blank" Text='<%# Eval("FileShortName") %>'>
                           </asp:HyperLink>--%>
                           <asp:Label ID="lblIsUpload" runat="server" Text='<%# Eval("IsUpload") %>'></asp:Label>
                           <asp:Button ID="btnUploadFile" runat="server" Text='<%$ Resources:UploadFile %>' CommandName="Upload" CommandArgument='<%# Eval("Id") %>' />
                        </ItemTemplate>
                        <ItemStyle Wrap="False"></ItemStyle>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </td>
    </tr>
</table>
<uc2:UploadFileControl ID="UploadFileControl1" runat="server" strClass="TrainingRecord" isEdit="True"  />
</ContentTemplate>
</asp:UpdatePanel>